package com.xsmart.oa.api;/**
 * Created by chenzb on 18/1/9.
 */

import com.xsmart.common.entity.RequestBean;
import com.xsmart.oa.services.WxmanageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.servlet.http.HttpServletRequest;

/**
 * @author chenzb
 * @create 2018-01-09 下午4:42
 **/
@Controller
@RequestMapping("/api")
public class WxManageController {

    @Autowired
    WxmanageService wxmanageService;

    @RequestMapping(value = "/v1/WxmanageService/getOpenIdAndSessionKey", method = RequestMethod.POST)
    @ResponseBody
    public Object getOpenIdAndSessionKey(@ModelAttribute RequestBean requestBean, HttpServletRequest request) {
        return wxmanageService.getOpenIdAndSessionKey(requestBean);
    }
}
